package com.gzu.shop.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;


/**
 * 分页需要的字段
 * @param <T> 实体对象
 */
@Data
public class SearchCondition<T> {
    private T search;
    private T filter;
    private List<Order> orders;

    @Data
    public static class Order {
        private String column;
        @JsonProperty("isAsc")
        private boolean isAsc;
    }

}
